package com.wise.summer.v1.portal.content.applicationarticle;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import java.sql.Timestamp;

import static com.wise.model.content.ContentErrMsgs.Err_001600250006;

/**
 * @author hejiawei
 * @date 2020/10/27 12:46
 */
@Getter
@Setter
@Publish
@ApiInfo("前端application文章详情")
@SkipUserAuth
public class GetApplicationArticleById extends BasicSummer<GetApplicationArticleById.Result> {
    @ApiInfo("文章ID")
    @NotBlank(msg = Err_001600250006)
    private String id;

    @Getter
    @Setter
    @Builder
    public static class Result {

        @Tolerate
        public Result() {

        }

        @ApiInfo("文章ID")
        @Column("id")
        private String id;

        @ApiInfo("对应栏目id")
        @Column("column_id")
        private String columnId;

        @ApiInfo("图片url")
        @Column("url")
        private String url;

        @ApiInfo("文章标题")
        @Column("title")
        private String title;

        @ApiInfo("别名")
        @Column("alias")
        private String alias;

        @ApiInfo("文章内容")
        @Column("content")
        private String content;

        @ApiInfo("多语言区分")
        @Column("lang")
        private String lang;

        @ApiInfo("文章作者")
        @Column("author")
        private String author;

        @ApiInfo("文章简介")
        @Column("intro")
        private String intro;

        @ApiInfo("发布时间")
        @Column("publish_time")
        private Timestamp publishTime;

        @ApiInfo("发布状态 0：不发布   1：发布")
        @Column("state")
        private Integer state;

        @ApiInfo("seo_title")
        @Column("seo_title")
        private String seoTitle;

        @ApiInfo("关键词描述")
        @Column("seo_describe")
        private String seoDescribe;

        @ApiInfo("草稿")
        @Column("draft")
        private String draft;

        @ApiInfo("网页标题")
        private String pageTitle;
    }
}
